import java.io.*;
import java.util.*;
public class StopWord {
	
	StopWord(){
		copyStopWords();
	}
	
	HashSet<String> hs = new HashSet<String>();
	
	public void copyStopWords(){
		try{
			BufferedReader br = new BufferedReader(new FileReader(Settings.stopFile));
			String word;
			while((word = br.readLine())!=null){
				word = word.trim();
				hs.add(word);
			}
			
			br.close();
		}
		catch(Exception e){
			e.printStackTrace();
		}
	}
	
	boolean isStopWord(String word){
		return hs.contains(word);
		
	}
	
}
